<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>01-Js使用方法-行间</title>
	<style>
		*{
			margin: 0;
			padding: 0;
		}
		div{
			width: 100px;
			height: 100px;
			margin: 100px auto;
			border: 1px solid #000;
		}
	</style>
</head>
<body>
	<div onclick="this.style.width='200px';this.style.background='red';this.style.height='200px'"></div>
</body>
</html>